<template>
  <van-nav-bar title="设置" left-text="返回" left-arrow @click-left="onClickLeft" fixed />
  <div class="box">
    <div class="box-item"><van-cell title="单元格" is-link /></div>
    <div class="box-item"><van-cell title="单元格" is-link /></div>
    <div class="box-item"><van-cell title="单元格" is-link /></div>
    <div class="box-item"><van-cell title="单元格" is-link /></div>
    <div class="box-item"><van-cell title="单元格" is-link /></div>
    <div class="box-item"><van-cell title="单元格" is-link /></div>
    <div class="box-item"><van-cell title="单元格" is-link /></div>
    <div class="box-item"><van-cell title="单元格" is-link /></div>
    <div class="box-item"><van-cell title="单元格" is-link /></div>
    <div class="box-item"><van-cell title="单元格" is-link /></div>
    <div class="box-item"><van-cell title="单元格" is-link /></div>
    <van-button type="primary" block @click="offLogin">退出登录</van-button>

  </div>
</template>

<script setup>
const onClickLeft = () => history.back()
const offLogin = () => {
  localStorage.removeItem('userToken')
  onClickLeft()
}
</script>

<style lang="less" scoped>

</style>